<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    *{
        margin: 0;
        padding: 0;
    }
    .box1{
      width: 100px;
      height: 100px;
      background-color: #bfa;
      margin: 100px auto;
      transition: .5s;
    }
    .box1:hover{
      transform: scale(2);
    }
    .img-wrapper{
      width: 200px;
      height: 200px;
      border: 1px solid red;
      margin: 300px auto;
    }
    .img-wrapper:hover img{
      transform: scale(2);
    }
    .img-wrapper img{
      width: 100%;
      height: 100%;
      transition: .5s;
    }
</style>
<body>
<div class="box1"></div>
<div class="img-wrapper">
  <img src="../img/1.jpg" alt="">
</div>
</body>
</html>
